#{extends 'admin.html' /}
#{set title:'Administration : Details de l\'utilisateur' /}


<article class="module width_3_quarter" style="width:75%;">
    <header><h3 class="tabs_involved" style="width:25%;">${entity.firstname} ${entity.lastname}</h3>
        <ul id="menu" class="tabs">
            <li ><a href="@{Users.show(entity.id)}">Infos</a></li>
            <li ><a href="@{Customers.create(entity.id)}">Transformation en Client</a></li>
            <li ><a href="@{Employees.create(entity.id)}">Transformation en Employ&eacute</a></li>
            <li><a href="@{Users.delete(entity.id)}" onclick="if (!confirm('Etes vous sur de vouloir supprimer cet utilisateur ?')) return false;"">Supprimer l'utilisateur</a></li>
        </ul>
        <div class="clear"></div>
    </header>
    <div class="tab_container">
        <div id="tab1" class="tab_content">
            <table class="tablesorter" cellspacing="0">
                <tbody>
                    <tr>
                        <td style="font-size:14px;font-weight:bold;text-align:center;">Groupe : </td>
                        <td style="font-size:16px;">${entity.groups}</td>
                    </tr>
                    <tr>
                        <td style="font-size:14px;font-weight:bold;text-align:center;">Avatar : </td>
                        <td style="font-size:16px;">${entity.avatar}</td>
                    </tr>
                    <tr>
                        <td style="font-size:14px;font-weight:bold;text-align:center;">Nom d'utilisateur : </td>
                        <td style="font-size:16px;">${entity.username}</td>
                    </tr>
                    <tr>
                        <td style="font-size:14px;font-weight:bold;text-align:center;">Courier Electronique : </td>
                        <td style="font-size:16px;">${entity.email}</td>
                    </tr>
                    <tr>
                        <td style="font-size:14px;font-weight:bold;text-align:center;">Date de Naissance : </td>
                        <td style="font-size:16px;">${entity.birthday.format()}</td>
                    </tr>
                    <tr>
                        <td style="font-size:14px;font-weight:bold;text-align:center;">Adresses : </td>
                        <td style="font-size:16px;">${entity.adress}</td>
                    </tr>
                    <tr>
                        <td style="font-size:14px;font-weight:bold;text-align:center;">N° de Téléphone : </td>
                        <td style="font-size:16px;">${entity.phonenumber}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</article>

